package edu.sctu.practice.class02.qiuyangyang.text07;

/**
 * Created by Administrator on 2015/10/11 0011.
 */
public class WuMingFen {
    String theMa;
    int quantity;
    boolean likeSoup;


    public WuMingFen(String theMa, int quantity, boolean likeSoup) {
        this.theMa = theMa;
        this.quantity = quantity;
        this.likeSoup = likeSoup;
    }

    public WuMingFen(String theMa, int quantity) {
        this.theMa = theMa;
        this.quantity = quantity;
    }

    public WuMingFen() {
        this.theMa = "酸辣";
        this.quantity = 2;
        this.likeSoup = true;
    }


    public void check() {
        System.out.println(this.quantity + "两" + (this.likeSoup == true ? "带汤" : "不带汤") + this.theMa + "面");
    }
}
